$(function(){
    $('#z-body-container').scroll(function(){
	if($(this).scrollTop() > 10){
	    $('a.window-scroll-top').fadeIn(200);
	}else{
	    $('a.window-scroll-top').fadeOut(200);
	}
    });
    
    $('a.window-scroll-top').hide().click(function(){
	$('#z-body-container').scrollTop(0);
    });
    
    var words = {'zh':'搜索','fr':'Search','en':'Search'};
    
    Z.innerTip($('ul#main-navigation form input.text'), words[LANG]);
    
    $('li.search form').submit(function(){
	
	var val = $(this).find('input[name="keyword"]').val();
	
	if(val == '' || val == 'Search' || val == '搜索'){
	    return false;
	}
	
    });
});